<include file="Public/header" />
    <!-- 主体 -->
    <div class="row" style="width:80%; margin:5px auto;">
      <!-- 左侧菜单 -->
      <div class="col-sm-3">
          <ul class="list-group">
            <h3>功能列表</h3>
            <li class="list-group-item disabled"><a href="{:U('/')}">用户列表</a></li>
            <a class="list-group-item" href="{:U('/')}">文章列表</a>
            <a class="list-group-item" href="{:U('/')}">每日访问</a>
            <a class="list-group-item" href="{:U('/')}">链接</a>
            <a class="list-group-item" href="{:U('/')}">链接</a>
            </ul>
      </div>
      <!-- 右侧文章列表 -->
      <div class="col-sm-8 col-sm-offset-1">
        <div style="height:300px; border:1px solid #fff;">
          <h3>用户列表</h3>
          <table class="table">
            <thead><tr><th>UID</th><th>用户名</th><th>手机号</th><th>管理</th></tr></thead>
            <tbody>
              
            </tbody>
          </table>
        </div>
          <nav>
            <ul class="pagination">
              
            </ul>
          </nav>
      </div>
      <script>
      /*
       * 
       */
        function setPage(page){
          var xhr = new XMLHttpRequest();
          var url = '\/index.php\/Chiefs\/Index\/'+field+'\/p\/'+page;
          xhr.open('GET',url,true);
          xhr.send(null);
          xhr.onreadystatechange = function(){
            if (xhr.readyState == 4) {
              var res = eval('('+this.responseText+')');
              $('.pagination').empty();
              $('tbody').empty();
              $(res[0]).appendTo($('.pagination'));
              $(res[1]).appendTo($('tbody'));

            };
          };
        };
        function setVisitors(){
          field = 'setVisitors';
          setPage(1);
        }
        function setUsers(){
        field = 'setUsers';
        setPage(1);
        }
        setUsers();
      </script>
<include file="Public/footer" />
